import request from "@/utils/request";
export const searchCourse = function (courseName) {
  return request('/course/searchCourse', "get", { courseName })
}
export const getCourseList = function (data) {
  return request('/course/getCourseList', "post", data)
}
export const insert = function (data) {
  return request('/course/insert', "post", data)
}

export const update = function (data) {
  return request('/course/update', "post", data)
}
export const deleteFn = function (courseId) {
  return request('/course/delete', "get", { courseId })
}

export const getDifferentSubjectInCount = function () {
  return request('/course/getDifferentSubjectInCount', "get")
}
export const addCourse = function (data) {
  return request('/userCourse/add', "Post", data)
}
export const findAll = function (userId) {
  return request('/userCourse/findAll', "get", { id: userId })
}

